package com.gitee.lougnib.simplekits.quick_generator.sproject.importer.easypoi;

import java.io.IOException;
import java.util.Properties;

public class EasypoiKit {

	public static String toValue(String name) {
		if (name == null) {
			return "";
		}
		
		Properties properties = new Properties();

		try {
			properties.load(EasypoiKit.class.getResourceAsStream("easypoi.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		if (properties.containsKey(name)) {
			return properties.get(name).toString();
		}
		return name;
	}

}
